package com.xuecheng.system.api;

import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.system.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(value = "xc-system-service")
public interface SystemService {
    //    查询
    @GetMapping("/{UserId}")
    public ResponseResult<User> findByid(@PathVariable("UserId") long id);
}
